<template>
	<ge-page id="ge-page" :vanNavBarObj="vanNavBarObj">
		<view>
			<van-button id="van-button" type="primary" @click="showDialog">弹出框</van-button>
		</view>
		<view>
			<van-button type="info" @click="showToast">轻提示</van-button>
		</view>
		<!-- <view style="width: 100%;height: 100%;background-color: #07C160;">111</view> -->
	</ge-page>
</template>

<script>
	export default {
		data() {
			return {
				vanNavBarObj: {
					title: '标题',
					rightText: '保存'
				}
			};
		},
		onLoad() {

		},
		methods: {
			showDialog() {
				// console.log(uni.dialog)
				uni.dialog.confirm({
						title: '标题',
						message: '弹窗内容',
					})
					.then(() => {
						// on confirm
					})
					.catch(() => {
						// on cancel
					});
			},
			showToast() {
				uni.toast('轻提示！');
			}
		}
	}
</script>

<style>

</style>
